
//--------------------------------------------------------------------//
//     此代码由T4模板自动生成										  //
//	   生成时间 2020-06-22 10:22:17 	                              //
//	   描述：编码规则格式
//--------------------------------------------------------------------//

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using RayD.Core;

namespace RayD.Repository.Entites.SystemModule
{
    [Table("BASE_CODERULEFORMAT")]
    public class CodeRuleFormatEntity
    {
        #region 实体成员
        /// <summary>
        /// 主键
        /// </summary>
        /// <returns></returns>
        [Key]
        [Column("B_FORMATID")]
        public string B_FormatId { get; set; }
        /// <summary>
        /// 编码规则主键
        /// </summary>
        /// <returns></returns>
        [Column("B_RULEID")]
        public string B_RuleId { get; set; }
        /// <summary>
        /// 前缀
        /// </summary>
        /// <returns></returns>
        [Column("B_ITEMTYPE")]
        public string B_ItemType { get; set; }
        /// <summary>
        /// 格式
        /// </summary>
        /// <returns></returns>
        [Column("B_FORMATSTR")]
        public string B_FormatStr { get; set; }
        /// <summary>
        /// 步长
        /// </summary>
        /// <returns></returns>
        [Column("B_STEPVALUE")]
        public int? B_StepValue { get; set; }
        /// <summary>
        /// 初始值
        /// </summary>
        /// <returns></returns>
        [Column("B_INITVALUE")]
        public int? B_InitValue { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        /// <returns></returns>
        [Column("B_DESCRIPTION")]
        public string B_Description { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        /// <returns></returns>
        [Column("B_SORTCODE")]
        public int? B_SortCode { get; set; }

        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
            this.B_FormatId = Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 编辑调用
        /// </summary>
        public void Modify()
        {
        }
        #endregion
    }
}

